package com.bjtang.book.entiy;

import java.time.LocalDateTime;

import javax.validation.constraints.Null;

import org.hibernate.validator.constraints.Length;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

@Data
public class PictureTable {
	// 主键
	@TableId(type = IdType.AUTO)
	private Long pictureNumber;
	// 图片名
	@Length(min = 0, max = 500)
	private String pictureName;
	// 图片路径
	@Length(min = 0, max = 500)
	private String picturePath;
	// 创建者ID
	@Null
	private Long founder;
	// 创建时间
	@Null
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime creationTime;
}
